from util import config

class Constants():
    
    def __init__(self):
        config.add_file('fv.config')
        for (name, value) in config.items('fv.types'):
            exec('self.' + name.upper() + ' = ' + value)
            
        for (name, value) in config.items('fv.ui'):
            exec('self.' + name.upper() + ' = ' + value)
        
        for (name, value) in config.items('fv.metas'):
            exec('self.' + name.upper() + ' = ' + value)


fvcon = Constants()